Previous Book Contents Book Index Next

Inside Macintosh: QuickTime /
Chapter 2 - Movie Toolbox / Movie Toolbox Reference
Functions That Modify Movie Properties / Working With Movie Spatial Characteristics


GetMovieBox

The GetMovieBox function returns a movie's boundary rectangle, which is a rectangle that encompasses all of the movie's enabled tracks. The movie box is in the coordinate system of the movie's graphics world and defines the movie's boundaries over the entire duration of the movie. The movie's boundary rectangle defines the size and shape of the movie before the Movie Toolbox applies the display clipping region.

pascal void GetMovieBox (Movie theMovie, Rect *boxRect);
theMovie
Specifies the movie for this operation. Your application obtains this movie identifier from such functions as NewMovie, NewMovieFromFile, and NewMovieFromHandle (described on page 2-80, page 2-76, and page 2-78, respectively).
boxRect
Contains a pointer to a rectangle. The GetMovieBox function returns the coordinates of the movie's boundary rectangle into the structure referred to by this parameter.
ERROR CODES
invalidMovie-2010This movie is corrupted or invalid
Memory Manager errors

SEE ALSO
You can use the SetMovieBox function, which is described in the previous section, to change the coordinates of a movie's boundary rectangle.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
6 JUL 1996